#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int x = 9;

	while(1)
	{
		if ((x % 5 == 1 )&&(x % 6 == 5 )&&(x % 7 == 11)&&(x % 11 == 10))
		{
			break;
		}
		printf("%d\n", x);
		x++;
	}




	return 0;
}